<?php

use Yolo\Errors\ExceptionRegistry;
use Yolo\Errors\ResponseError;
use Yolo\Utils\Number;

$registry = ExceptionRegistry::inst();
$registry->createExceptionRegistry(
    'system',
    [
        'system' => [
            'index' => Number::createIncreaseCodeIndex(400000)
        ]
    ]
);

$registry->register(
    (new ResponseError('system', 'route_not_found', 'Route not found.'))->setHttpStatus(404)
);
